<?php

namespace App\Http\Controllers;

use App\Library\Requests\Invite\CertificationApplyRequest;
use App\Library\Service\InviteCertificationService;
use Illuminate\Http\JsonResponse;

class CertificationController extends BaseController
{
    /**
     * @param InviteCertificationService $service
     */
    public function __construct(InviteCertificationService $service)
    {
        $this->service = $service;
    }

    /**
     * 分销资质申请
     * @param CertificationApplyRequest $request
     * @return JsonResponse
     *
     */
    public function apply(CertificationApplyRequest $request): JsonResponse
    {
        return $this->service->apply($request);
    }

    /**
     * 盲盒-拍卖-分销资质详情
     * @return JsonResponse
     *
     */
    public function allDetail(): JsonResponse
    {
        return $this->service->allDetail();
    }
}
